package com.rcoming.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.EditText;

import com.rcoming.R;
import com.rcoming.base.BaseActivity;
import com.rcoming.main.MainActivity;
import com.rcoming.util.MyLogUtil;
import com.rcoming.util.SPUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * A login screen that offers login via email/password.
 */
public class LoginActivity extends BaseActivity {

    @BindView(R.id.email)
    AutoCompleteTextView email;
    @BindView(R.id.password)
    EditText password;
    @BindView(R.id.sign_in_button)
    Button signInButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);

    }

    @OnClick(R.id.sign_in_button)
    public void onViewClicked() {

        SPUtil.putString("tokenId", "rcoming");
        MyLogUtil.d(SPUtil.getString(context,"tokenId"));
        Intent intent = new Intent(this, MainActivity.class);
        startActivity(intent);
        finish();

    }
}

